<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>  
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="admin" />
        <title>ContactData List</title>
    </head>
    <body>
		<div id="center-column">
			<div class="top-bar">
				<g:link class="button" action="create">ADD NEW</g:link>
	            <h1>ContactData List</h1>
				<div class="breadcrumbs">
					<a class="home" href="${createLinkTo(dir:'')}">Home</a> / 
					<g:link class="create" action="create">New ContactData</g:link>
				</div>
			</div><br />
			<div class="select-bar">
				<g:form method="post">
					<input type="text" name="searchString" value="${searchString}"/>
					<g:actionSubmit action="list" value="Search" />
				</g:form>
			</div>		
	        <div class="body">
		    <div class="table">
			<img src="${createLinkTo(dir:'images/admin',file:'bg-th-left.gif')}" width="8" height="7" alt="" class="left" />
			<img src="${createLinkTo(dir:'images/admin',file:'bg-th-right.gif')}" width="7" height="7" alt="" class="right" />
			<display:table name="contactDataList" export="true" defaultsort="1" partialList="true" decorator="de.koo.grum.groovy.util.DisplaytagWrapper"
				size="${resultSize}" pagesize="${pageSize}" requestURI="/grum/contactData/list"
				class="listing" cellpadding="0" cellspacing="0" sort="list">
				<!-- display:setProperty name="decorator.media.pdf" value="org.displaytag.sample.decorators.ItextTotalWrapper" / -->
			    <display:setProperty name="export.csv.filename" value="contactData.csv" />
			    <display:setProperty name="export.excel.filename" value="contactData.xls" />
			    <display:setProperty name="export.xml.filename" value="contactData.xml" />
			    <display:setProperty name="export.pdf.filename" value="contactData.pdf" />
			    <display:setProperty name="export.amount" value="list" />
			    
			    <display:column property="linkContactDataToUser" title="Name" sortable="true" group="1"/>						
			    <display:column property="type" title="type" sortable="true" />
			    <display:column property="data" sortable="true" />
			</display:table>
	            </div>
	        </div>
	    </div>
		<div id="right-column">
			<strong class="h">INFO</strong>
            <g:if test="${flash.message}">
	            <div class="box">${flash.message}</div>
            </g:if>
            <g:else>
		<div class="box">num contacts: ${contactDataList.size()}</div>
            </g:else>
		</div>
    </body>
</html>
